Implement API Key Model Logic in Go#63
Conversation
This commit ports the business logic for the APIKey model from the Ruby on Rails application to the new Go backend. The implementation includes: - A GORM BeforeCreate hook to generate an HMAC-SHA512 token digest. - AuthenticateByToken and AuthenticateByToken! functions for token verification. - Secure handling of the HMAC secret key using environment variables.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. |
This change implements the business logic for the
APIKeymodel in the Go backend, porting it from the original Ruby on Rails application. This includes token generation using HMAC-SHA512 and authentication functions.PR created automatically by Jules for task 15242739009293426383